How to switch ~AutoDeclare_?

So I write in my script

XFLAGS_ &=~AutoDeclare_

but now I want to back the default state? How to do that? I try with:

XFLAGS_ |= AutoDeclare_

 

But now I can not use statemets like:

myNewVal = 10;

PS. I close the DXL editor and open again and now everything is OK.


Dinio - Thu Dec 10 10:27:16 EST 2015

Re: How to switch ~AutoDeclare_?
Mathias Mamsch - Thu Dec 10 16:11:06 EST 2015

You should employ the search of the forum more. Autodeclare has been exhaustively discussed in the forum. Regards, Mathias

Re: How to switch ~AutoDeclare_?
Dinio - Fri Dec 11 03:22:00 EST 2015

Mathias Mamsch - Thu Dec 10 16:11:06 EST 2015

You should employ the search of the forum more. Autodeclare has been exhaustively discussed in the forum. Regards, Mathias

Yes,I found the topic and copy the code, but it does not work .And that why I open the post. But then when I close the Doors Rich Client and try again. Everything was OK.

Re: How to switch ~AutoDeclare_?
Mathias Mamsch - Fri Dec 11 09:38:27 EST 2015

Dinio - Fri Dec 11 03:22:00 EST 2015

Yes,I found the topic and copy the code, but it does not work .And that why I open the post. But then when I close the Doors Rich Client and try again. Everything was OK.

If you would have cared to read the posts (there is more than one), then you would have found out, that the XFLAGS is a "parser setting". I.E. it does not affect your running DXL code, it does only affect all further "parsing" of DXL code. You would also have found the hint, that you should never put this inside a DXL program, since it has no effect on the program itself, but it can break other DXL scripts running on the same client, that rely on autodeclare.  Therefore you should only put it in the autostart files of the DOORS client you use for develoment. Regards, Mathias